package com.tsky.yyj.entity;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * @function：商家
 * @author: cainiao
 * @version 1.0
 * @time: 2013-6-10 上午11:07:35
 */
@Entity
@Table(name = "T_YYJ_Seller")
public class Seller {
	@Id
	private String id;// 序号
	private String code;// 用户名
	private String name;// 商户名称
	private String contact;// 联系人
	private String license;// #营业执照（上传图片）
	@OneToMany(mappedBy = "seller")
	private List<Store> stores;// @门店

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getLicense() {
		return license;
	}

	public void setLicense(String license) {
		this.license = license;
	}

	public List<Store> getStores() {
		return stores;
	}

	public void setStores(List<Store> stores) {
		this.stores = stores;
	}

}
